#!/bin/sh
if [ $# -lt 2 ]
then
	echo 'usage:$1 src dest'
	exit
fi

suffix='abc'
if [ $# -eq 3 ]; then suffix=$3 
fi

src=`echo $1|sed 's/\//\\//'`
dest=`echo $2|sed 's/\//\\//'`

echo start searching \*\.$suffix
echo replace "${src}" as "${dest}"
find ./ -name \*\.$suffix -exec export set _tmp_file_={} \; -exec echo 'FILE[\${_tmp_file_}]' \; cat \${_tmp_file_}
#| sed 's/'${src}'/'${dest}'/' 

